# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=texinfo
pkgver=7.1
pkgrel=1
pkgdesc="Utilities to work with and produce manuals, ASCII text, and on-line documentation from a single source file"
url="https://www.gnu.org/software/texinfo/"
arch="all"
options="!check" # Test dependencies are not packaged
license="GPL-3.0-or-later"
depends="perl"
makedepends="ncurses-dev perl-dev"
subpackages="$pkgname-doc"
source="https://ftp.gnu.org/gnu/texinfo/texinfo-$pkgver.tar.xz
	fix-build-without-NLS.patch"
install="texinfo.pre-deinstall"
triggers="texinfo.trigger=/usr/share/info"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--disable-nls
	make
}

package() {
	make DESTDIR="$pkgdir"/ install
}

sha512sums="
ceab03e8422d800b08c7b44e8263b0a1f35bb7758d83a81136df6f3304a14daecda98a12a282afb85406d2ca2f665b2295e10b6f4064156ea1285d80d5d355db  texinfo-7.1.tar.xz
4e81263afa0d3c58316e8104f9c155f0c11946fae7a9fa98ff3d86637e56be377fe584ca82df0786f4c74a180813cbcf87f25e0ee7bbbea9073eac20660f08d9  fix-build-without-NLS.patch
"
